package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.service.store.awk.bean.ContentItemBean;
import java.util.ArrayList;
import java.util.List;
import o.azb;
import o.cgz;
import o.dof;
import o.CollectCheck;
import o.ewm.j;

public class ContentNormalItemCard extends BaseDistCard {
    private ImageView ʻ;
    protected List<TextView> ʽ;
    protected TextView ˋ;
    protected TextView ᐝ;

    public ContentNormalItemCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        azb.ˎ(view, j.יˏ);
        azb.ˋ(view, j.ʿᐝ);
        ˏ((ImageView) view.findViewById(j.ʻˊ));
        ॱ((TextView) view.findViewById(j.ʽ));
        ˊ((TextView) view.findViewById(j.ˋ));
        this.ˋ = (TextView) view.findViewById(j.ॱॱ);
        this.ᐝ = (TextView) view.findViewById(j.ˊॱ);
        this.ʽ = new ArrayList(3);
        this.ʽ.add(0, (TextView) view.findViewById(j.ˊ));
        this.ʽ.add(1, (TextView) view.findViewById(j.ᐝ));
        this.ʽ.add(2, (TextView) view.findViewById(j.ʼ));
        this.ʻ = (ImageView) view.findViewById(j.ᐧˋ);
        azb.ʻ(this.ʻ);
        ʽ(view);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        ContentItemBean contentItemBean = (ContentItemBean) cardBean;
        ˋ(contentItemBean);
        this.ʻ.setVisibility(ˊᐝ() ? 0 : 4);
        if (dof.ʽ(contentItemBean.ॱ())) {
            this.ˋ.setVisibility(4);
            this.ᐝ.setVisibility(4);
        } else {
            this.ˋ.setText(contentItemBean.ॱ());
            this.ˋ.setVisibility(0);
            this.ᐝ.setVisibility(0);
        }
        if (!CollectCheck.isEmpty(contentItemBean.ˊ())) {
            for (int i = 0; i < contentItemBean.ˊ().size(); i++) {
                if (!dof.ʽ((String) contentItemBean.ˊ().get(i))) {
                    ((TextView) this.ʽ.get(i)).setText((CharSequence) contentItemBean.ˊ().get(i));
                }
            }
        }
    }

    protected void ˋ(ContentItemBean contentItemBean) {
    }
}
